﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Turma_Cadastro.aspx.cs"
    Inherits="ProjetoJornada.Interno.Turma_Cadastro" Title="Cadastrar Turma" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/validacao_mascara.js" type="text/javascript"></script>
    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server" 
        EnableScriptGlobalization="True"/>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="margin-top: 20px; text-align: left">
                <asp:Label ID="lblMensagemErro" runat="server" Text="" ForeColor="Red"></asp:Label>
                <br />
                <asp:Label ID="Label22" runat="server" Text="Os campos com * são obrigatórios" Font-Size="Smaller"
                    ForeColor="Gray"></asp:Label>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                    ShowSummary="False" />
            </div>
            <div style="margin-top: 20px;">
                <fieldset id="Curso">
                    <legend>Dados Turma</legend>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" AssociatedControlID="txtValor" runat="server" Text="Valor (R$)"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtValor" runat="server"  TabIndex="1" Width="190px" onKeyPress="return somenteNumeros(event);"></asp:TextBox>
                                <asp:Label ID="Label18" runat="server" Text="*" Font-Size="Smaller" ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidatorNome" runat="server" ControlToValidate="txtValor" ErrorMessage="O campo 'Valor' é obrigatório"
                                    ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:Label ID="Label7" AssociatedControlID="txtDataInicial" runat="server" Text="Data inicial"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDataInicial"  TabIndex="6" Width="190px" runat="server" MaxLength="10"
                            onKeyDown="Mascara(this,Data);" onKeyPress="return somenteNumeros(event); Mascara(this,Data);"
                            onKeyUp="Mascara(this,Data);"   ></asp:TextBox>
                                <asp:CalendarExtender ID="txtDataInicial_CalendarExtender" runat="server" 
                                    Enabled="True" TargetControlID="txtDataInicial">
                                </asp:CalendarExtender>
                                <asp:Label ID="Label11" runat="server" Text="*" Font-Size="Smaller" ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDataInicial"
                                    ErrorMessage="O campo 'Data inicial' é obrigatório" ForeColor="Red" Font-Size="Smaller"
                                    Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" AssociatedControlID="txtLocal" runat="server" Text="Local"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtLocal" runat="server" TabIndex="2" Width="190px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label3" AssociatedControlID="txtDataFinal" runat="server" Text="Data final"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDataFinal" Width="190px"  TabIndex="7" runat="server" MaxLength="10"
                            onKeyDown="Mascara(this,Data);" onKeyPress="return somenteNumeros(event); Mascara(this,Data);"
                            onKeyUp="Mascara(this,Data);"   ></asp:TextBox>
                                <asp:CalendarExtender ID="txtDataFinal_CalendarExtender" runat="server" 
                                    Enabled="True" TargetControlID="txtDataFinal">
                                </asp:CalendarExtender>
                                <asp:Label ID="Label12" runat="server" Text="*" Font-Size="Smaller" ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDataFinal"
                                    ErrorMessage="O campo 'Data final' é obrigatório" ForeColor="Red" Font-Size="Smaller"
                                    Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" AssociatedControlID="txtQntVagas" runat="server"  Text="Vagas"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtQntVagas" TabIndex="3" runat="server" Width="190px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lbl1" AssociatedControlID="txtHorario" runat="server" Text="Horário"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtHorario" TabIndex="8" runat="server" Width="190px"></asp:TextBox>
                                <asp:Label ID="Label5" runat="server" Text="*" Font-Size="Smaller" ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHorario" ErrorMessage="O campo 'Horário' é obrigatório"
                                    ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label6" AssociatedControlID="ddlInstrutor" runat="server" Text="Instrutor"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlInstrutor" TabIndex="4" runat="server" Width="190px">
                                </asp:DropDownList>
                            </td>
                            <td class="style1">
                                <asp:Label ID="Label9" AssociatedControlID="ddlCurso" runat="server" Text="Curso"></asp:Label>
                            </td>
                            <td class="style1">
                                <asp:DropDownList ID="ddlCurso" TabIndex="9" runat="server" Width="190px">
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                                <asp:Label ID="Label10" runat="server" Text="*" Font-Size="Smaller" ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlCurso" ErrorMessage="O campo 'Curso' é obrigatório"
                                    ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label8" AssociatedControlID="ddlMonitor" runat="server" Text="Monitor"></asp:Label>
                            </td>
                            <td class="style1">
                                <asp:DropDownList ID="ddlMonitor" TabIndex="5" runat="server" Width="190px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
            <div id="botao_cadastrar">
                <asp:ImageButton ID="CadastrarImageButton" TabIndex="10" ImageUrl="~/imagens/add.png" runat="server"
                    OnClick="CadastrarImageButton_Click" />
                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                        <asp:Image ID="imgLoading" ImageUrl="~/imagens/ajax-loader.gif" runat="server" />
                        Carregando...
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
